		<?php echo $this->Session->flash('cl'); ?>
		<span>Added Courses</span>
		<table class="list" cellpadding="0" cellspacing="0">
		<tr><th>Name:</th><th>Grade:</th><th>Area:</th><th>Completion Date:</th><th>Delete:</th></tr>
<?php
	foreach ($data as $line => $c) {
	
		echo (($line+1)%2==1)? '<tr class="odd">': '<tr class="even">';
		echo "\n<td>{$c['Course']['coursename']}</td><td>"
				 . strtoupper($c['Course']['grade'])
				 . "</td><td>" . ucwords($c['Course']['category']). "</td>";
		
		$dt = explode( '-', $c['Course']['complete_date']);
		echo "<td>{$dt[1]}/{$dt[0]}</td><td>";
		echo $this->Js->link('delete', 
						array('controller' => 'Courselists', 'action' => 'deleteCourse',  $c['Course']['id']), 
						array('update' => '#course_list'));
		echo "</td></tr>";
	}
?>
		</table>

